<template>
  <div class="formBox">
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="联系人">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="联系方式">
        <el-input v-model="form.phone"></el-input>
      </el-form-item>
      <el-form-item label="房型选择">
        <el-select v-model="form.type" placeholder="请选择活动区域">
          <el-option label="总统套房" value="shanghai"></el-option>
          <el-option label="经济房" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="入住日期">
            <el-date-picker
              v-model="form.date1"
              type="date"
              placeholder="选择日期">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="退房日期">
            <el-date-picker
              v-model="form.date2"
              type="date"
              placeholder="选择日期">
            </el-date-picker>
          </el-form-item>
          
      <el-form-item label="需求备注">
        <el-input type="textarea" v-model="form.desc"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: "",
        phone: "",
        type: "",
        date1: "",
        date2: "",
        desc: "",
      },
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
};
</script>

<style scoped>
.formBox{
  width: 1200px;
  height: 100%;
  /* background: #efdada; */
  margin: 30px 0;
}
</style>
